package com.example.demo;

/**
 * 访问数记录
 */

public class LoginUser {
    private static int visitCount = 0;// 初始总访问数为0
    // 总访问数加1
    public static void addVisitCount() {
        LoginUser.visitCount++;
    }

    // 获取总访问数
    public static int getVisitCount() {
        return LoginUser.visitCount;
    }
}
